const obj = {
  func: function () {
    return 123;
  },
};
console.log(obj.func?.());
